export default defineNuxtConfig({
  modules: [
    '@pinia/nuxt'
  ],
  css: [
    'vant/lib/index.css',
    '@/assets/css/theme.css'
  ],
  devtools: { enabled: true },
  devServer: {
    host: '0.0.0.0',
    port: 3000
  },
  nitro: {
    preset: 'node-server',
    externals: {
      external: ['@prisma/client', '.prisma/client']
    }
  },
  build: {
    transpile: ['vant']
  },
  runtimeConfig: {
    jwtSecret: process.env.JWT_SECRET || 'please-change-me',
    databaseUrl: process.env.DATABASE_URL,
    authCookieSecure: false,
    public: {
      timezone: 'Asia/Shanghai'
    }
  },
  typescript: {
    strict: true
  }
});


